package com.huangkailong.designpattern.visitor;

import java.util.ArrayList;
import java.util.List;

/**
 * 访问者模式测试.
 *
 * @author huangkl
 * @since 1.0.0
 */
public class Client {
    public static void main(String[] args) {
        List<Employee> employeeList = new ArrayList<>();
        employeeList.add(new Engineer("工程师A"));
        employeeList.add(new Engineer("工程师B"));
        employeeList.add(new Engineer("工程师C"));
        employeeList.add(new Engineer("工程师D"));
        employeeList.add(new Manager("项目经理A"));
        employeeList.add(new Manager("项目经理A"));
        employeeList.add(new Manager("项目经理A"));
        employeeList.add(new Manager("项目经理A"));
        BusinessReport businessReport = new BusinessReport(employeeList);
        businessReport.accept(new CtoVisitor());
    }
}
